//
//  VerticalSegmentedControlTableViewCell.m
//  VerticalSegmentedControl-Demo
//
//  Created by Vincent on 2/25/16.
//  Copyright © 2016 Vincent. All rights reserved.
//

#import "VerticalSegmentedControlTableViewCell.h"

@interface VerticalSegmentedControlTableViewCell ()
@property (weak, nonatomic) IBOutlet UIView *indicatorLine;
//@property (weak, nonatomic) IBOutlet UILabel *title;
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@end

@implementation VerticalSegmentedControlTableViewCell
- (void)setSegmentImage:(NSString *)image selectImage:(NSString *)selectImage{
    self.imageView.image = [UIImage imageNamed:image];
    self.normalImage = image;
    self.selectImage = selectImage;
    
}

- (void)awakeFromNib {
    // Initialization code
    [super awakeFromNib];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    self.imageView.image = selected?[UIImage imageNamed:self.selectImage]:[UIImage imageNamed:self.normalImage];
}

@end
